package org.dromara.hm.domain.vo;

import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.math.BigDecimal;
import java.util.Date;

/**
 *  库存变更记录对象
 * @Author If404 Hzy
 * @Date 2025-2025/2/7-17:29
 * @Version 1.0
 */
@Data
public class StockChangeRecordVO
{
    private Long recordId; // 记录ID

    private String recordType; // 记录类型（出入库、提货、自主增加、删除订单回填）

    private Long productId; // 产品ID

    @Translation(type = TransConstant.PRODUCT_ID_TO_NAME, mapper = "productId")
    private String productName; // 商品名称

    private BigDecimal changeNum; // 变更数量

    private Date changeTime; // 变更时间

    private Long orderId; // 订单id

    private Long operatorId; // 提货人Id

    @Translation(type = TransConstant.CUSTOMER_ID_TO_NAME, mapper = "operatorId")
    private String operator; // 操作人(提货使用)

    private String remark; // 详情

    private String proof; // 证明材料

    /**
     * 记录起始所在仓库
     */
    private String recordStartLocation;

    /**
     * 记录终点所在仓库
     */
    private String recordEndLocation;

    /**
     * 记录起始所在仓库
     */
    @Translation(type= TransConstant.DEPT_ID_TO_NAME,mapper = "recordStartLocation")
    private String recordStartLocationName;


    /**
     * 记录终点所在仓库
     */
    @Translation(type= TransConstant.DEPT_ID_TO_NAME,mapper = "recordEndLocation")
    private String recordEndLocationName;
}
